﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace DigDes.DSchool.SUPS.WebMVC.UI.Models
{
    public class RequestModel
    {
        [Required(ErrorMessage = "Please enter number")]
        [RegularExpression(@"^(\d[0-9]+$)", ErrorMessage ="Only digits are allowed")]
        [StringLength(8, MinimumLength = 8, ErrorMessage ="Length of number should be 8")]
        public string InventoryNumber { get; set; }
    }
}